package com.pignest.hotel.definition;

public enum MemberState {

	OnUsed("在用"), OnLost("挂失"), OnSleep("休眠");
	private String name;

	MemberState(String name) {
		this.name = name;
	}

	public static MemberState valueof(String name) {
		if (name == null)
			return null;
		try {
			return valueOf(name);
		} catch (Exception e) {
		}
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
